package cn.edu.abtu.dao.impl;

import cn.edu.abtu.dao.IAccountDao;
import org.springframework.jdbc.core.JdbcTemplate;

public class AccountDaoImpl implements IAccountDao {
    private JdbcTemplate jdbcTemplate;

    public JdbcTemplate getJdbcTemplate() {
        return jdbcTemplate;
    }

    public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
        this.jdbcTemplate = jdbcTemplate;
    }

    @Override
    public void addAccount(String sql) {
        jdbcTemplate.update(sql);
    }
}
